﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.Models;
using PBOffice.BLL;

public partial class AppraisalManager_OverWork : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        OverWork over = new OverWork();
        over.BeginDate = Convert.ToDateTime(this.txtBeginTime.Text);
        over.EndDate = Convert.ToDateTime(this.txtEndTime.Text);
        over.Hours = Convert.ToInt32(this.txtTime.Text);
        over.Memo = this.txtMemo.Text;
        over.StfCode = ((Staff)(Session["username"])).StfCode;
        AuditType au=new AuditType();
        au.AuditStatus="同意";
        au.StatusId=1;
        over.Status = au;
        new OverWorkManager().AddOverWork(over);
    }
}